﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    class UserRepository : BaseRepository<User>, IUserRepository
    {
        public UserRepository(ShopDBContext context)
            : base(context)
        {

        }

        public User FindByEmail(String email)
        {
            return base.context.Set<User>().FirstOrDefault(user=>user.Email == email);
        }
    }
}
